//
//  TextfeildTableViewCell.m
//  EasyToTesco
//
//  Created by mc on 16/3/21.
//  Copyright © 2016年 Jack. All rights reserved.
//

#import "TextfeildTableViewCell.h"

@interface TextfeildTableViewCell()<UITextFieldDelegate>

@end


@implementation TextfeildTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self  = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.BTextfeild.delegate = self;
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}
#pragma mark -- UITextFieldDelegate
//触摸空白处回收键盘
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    [self.BTextfeild resignFirstResponder];
    

}

- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    [self.BTextfeild resignFirstResponder];
    return YES;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
